﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;

namespace Smash
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            try
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Dashboard SmashBoard = new Dashboard();
                AppDomain.CurrentDomain.UnhandledException
                  += new UnhandledExceptionEventHandler(
                           SmashBoard.Dashboard_UnhandledException);
                Application.ThreadException
                  += new ThreadExceptionEventHandler(
                           SmashBoard.Dashboard_ThreadException);
                Application.Run(SmashBoard);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
    }
}
